/**
 * Sequence.java
 */
package com.jaws.core.compatible.model;

/**
 * 序列号生成器
 * @author jiangmy
 * @date 2014年4月11日 下午2:47:04
 */
@SuppressWarnings("serial")
public class SequencePO extends BasePO {

	private String name;
	private long nextValue;

	public SequencePO() {
	}

	public SequencePO(String name, int nextValue) {
		super();
		this.name = name;
		this.nextValue = nextValue;
	}

	public String getName() {
		return this.name;
	}

	public SequencePO setName(String name) {
		this.name = name;
		return this;
	}

	public long getNextValue() {
		return this.nextValue;
	}

	public SequencePO setNextValue(long nextValue) {
		this.nextValue = nextValue;
		return this;
	}

	/**
	 * @param step
	 */
	public void addNextValue(int step) {
		this.nextValue += step;
	}

}
